package com.zbkj.crmeb.store.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商户商品sku表
 * </p>
 *
 * @author wuzp
 * @since 2022-02-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_store_product_value_mer")
@ApiModel(value="StoreProductValueMer对象", description="商户商品sku表")
public class StoreProductValueMer extends Model<StoreProductValueMer> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品id")
    private Integer productId;

    @ApiModelProperty(value = "源数据商品skuId")
    private String sourceSkuId;

    @ApiModelProperty(value = "sku售价")
    private BigDecimal price;

    @ApiModelProperty(value = "秒杀价")
    @TableField(exist = false)
    private BigDecimal spikePrice;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

//    @ApiModelProperty(value = "重量")
//    private BigDecimal weight;

    @ApiModelProperty(value = "体积")
    private BigDecimal volume;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
